cc.Class({
    extends: cc.Component,

    properties: {
        label:{
            default : null , 
            type : cc.Label
        },
        index: -1  
    },

    // use this for initialization
    onLoad: function () {
        let self = this;
        
       
        var socket = io.connect('http://localhost:8081/im/user');
        
        socket.on("connect" , function(){
             console.log("ttt");
             self.getComponent(cc.Label);
        });
        
    },

    // called every frame, uncomment this function to activate update callback
    // update: function (dt) {

    // },
});
